package com.sali.utils.result;


/**
 * 定义最通用的、最基本的成功和失败状态码。
 */
public enum DefaultResponseEnum implements IResultCode {

    SUCCESS(20000, "成功"),
    ERROR(40001, "错误");

    private final Integer code;
    private final String msg;

    DefaultResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getCodeDesc() {
        return null;
    }

    @Override
    public String getMsg() {
        return msg;
    }


}
